package builder.simple;

public class Worker extends IBuild {

    private Product product;
    
    public Worker(){
        product = new Product();
    }

    @Override
    void buildA() {
        product.setBuildA("buildA");
        System.out.println("工人建造了buildA");
    }

    @Override
    void buildB() {
        product.setBuildB("buildB");
        System.out.println("工人建造了buildB");
    }

    @Override
    void buildC() {
        product.setBuildC("buildC");
        System.out.println("工人建造了buildC");
    }

    @Override
    Product getProdut() {
        return product;
    }
}
